#ifndef	__HT16512_H__
#define __HT16512_H__

#include <STC8.H>
#include<intrins.h>
#define Delay416ns {_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();}

#define DISPLAY_ON 0x88
#define DISPLAY_OFF 0x80

void HT16512WriteData(bit CSsta, unsigned char dat, bit CSend);
void HT16512WriteDataByIncrementingAddress(unsigned char DisplayModelSet,
	unsigned char DataSet,
	unsigned char AddressSet,
	unsigned char LuminanceSet,
	unsigned char* buf,
	unsigned char BuffSiez);
void HT16512WriteDataBySpecificAddress(unsigned char DataSet,
	unsigned char Dat1AddressSet,
	unsigned char Dat1,
	unsigned char Dat2AddressSet,
	unsigned char Dat2);

#endif